<!--
 * @Description: 
 * @Author: jack-wang
 * @Date: 2021-03-29 13:27:19
 * @LastEditTime: 2021-03-29 13:27:19
 * @LastEditors: Su Yunzheng
-->
<template>
    <div>
        定位
    </div>
</template>

<script>
import {geolocation} from '@/utils/map';
export default {
    async created(){
        let result = await geolocation();
        localStorage.setItem('positionData',result.formattedAddress);
        this.$router.push('/main');
    }
}
</script>